Restore package changelog + add dry_run validation flag#53
Merged
Conversation
PR #51 replaced the hhd-dev/rechunk action with the native chunker (rpm-ostree compose build-chunked-oci), which does not emit the dev.hhd.rechunk.info OCI label. changelog.py reads package data solely from that label, so the "Major Packages" and "Package Changes" tables went empty while commits (sourced from a different label) kept working. Rebuild the label from the raw image's RPM database in the existing "Apply OCI labels" step, matching the format the old action emitted. changelog.py is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
workflow_dispatch now exposes a dry_run choice (off/build/chunk) so a manual run can verify the image builds — and optionally rechunks — cleanly without publishing. 'build' stops after Build image (rootful), 'chunk' stops after Run native rechunker; both skip push, signing, and the release job. Automated push/schedule builds are unaffected because the inputs context is empty for those events. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two related build-pipeline fixes following the native-chunker migration (#51).
1. Restore the package changelog (
970e6e4)PR #51 replaced the
hhd-dev/rechunkaction with the native chunker(
rpm-ostree compose build-chunked-oci). The old action was the thing thatemitted the
dev.hhd.rechunk.infoOCI label — a JSON{package: version}map that
changelog.pyreads (and only reads) to build the "Major Packages"and "Package Changes" tables. The native chunker doesn't emit it, so both
tables went empty. Commits kept showing because they ride a different label
(
org.opencontainers.image.revision), which is still baked in — hence the"commits yes, packages no" symptom on recent releases.
Verified against the live registry: the label is present on
latest.20260605and earlier (~2350 packages), absent on
latest.20260610/20260611— thefirst builds after the merge.
Fix: regenerate the label from the raw image's RPM database in the existing
"Apply OCI labels" step, matching the format the old action emitted
(
%{VERSION}-%{RELEASE}).changelog.pyis unchanged.Note
The first post-merge changelog diffs a label-bearing build against the
previous label-less one, so the "Package Changes" table will list all
~2350 packages as added, once. It self-corrects on the following build.
2. Add
dry_runvalidation flag (b0616e1)New
workflow_dispatchchoice input to validate that the image builds — andoptionally rechunks — cleanly on a manual run, without publishing:
off(default)buildchunkBoth stop points skip push, signing, and the release job. Automated
push/schedule/PR runs are unaffected — the
inputscontext is empty for thoseevents.
Note
The
dry_runselector only appears on the Actions tab once this is onmain(GitHub reads
workflow_dispatchinputs from the default branch).Testing
multilib, skips malformed lines).
:latestbuild.🤖 Generated with Claude Code